package task

import (
	"github.com/jinzhu/gorm"
	"kop/modules/guild/models"
	"time"
)

// 定时删除聊天记录
func Task(dB *gorm.DB) {

	models.DelBossRecord(dB)

	go func() {
		for range time.NewTicker(time.Hour * 24).C {

			models.DelBossRecord(dB)
		}
	}()

}
